﻿using GeneralTool.CoreLibrary.TaskLib;
using GeneralTool.CoreLibrary.WPFHelper;

namespace PythonInterface
{
    public class TestClient
    {
        public readonly TestTaskInterface Test;

        public TestClient(string ip,int port)
        {
            this.Test = PackageClientBuilder.CreateChannel<TestTaskInterface>(ip, port, "TestTask/");
        }

    }

    public class AdbBlockModel : BaseNotifyModel
    {
        private int id;
        public int Id
        {
            get => this.id;
            set => this.RegisterProperty(ref this.id, value);
        }

        private int refValId;

        public int RefValId
        {
            get => this.refValId;
            set => this.RegisterProperty(ref this.refValId, value);
        }



        private int executeType;
        /// <summary>
        /// 执行模式
        /// </summary>
        public int ExecuteType
        {
            get => this.executeType;
            set => this.RegisterProperty(ref this.executeType, value);
        }

        private int snapType;
        /// <summary>
        /// 采集模式,同步或异步
        /// </summary>
        public int SnapType
        {
            get => this.snapType;
            set => this.RegisterProperty(ref this.snapType, value);
        }

        private string adbCommandTxt;
        /// <summary>
        /// adb命令
        /// </summary>
        public string AdbCommandTxt
        {
            get => this.adbCommandTxt;
            set => this.RegisterProperty(ref this.adbCommandTxt, value);
        }

        private bool isOutFile;
        /// <summary>
        /// 是否输出到文件
        /// </summary>
        public bool IsOutFile
        {
            get => this.isOutFile;
            set => this.RegisterProperty(ref this.isOutFile, value);
        }

        private string outPutFilePath;
        /// <summary>
        /// 否输出到文件的路径
        /// </summary>
        public string OutPutFilePath
        {
            get => this.outPutFilePath;
            set => this.RegisterProperty(ref this.outPutFilePath, value);
        }

        private bool addDate;
        /// <summary>
        /// 每条输出是否加入日期参数
        /// </summary>
        public bool AddDate
        {
            get => this.addDate;
            set => this.RegisterProperty(ref this.addDate, value);
        }

        private string dateFomart = "yyyy-MM-dd HH:mm:ss.fff";
        /// <summary>
        /// 日期参数格式
        /// </summary>
        public string DateFomart
        {
            get => this.dateFomart;
            set => this.RegisterProperty(ref this.dateFomart, value);
        }
    }
}
